home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / boosters.arc / PUTSTR.PAS < prev    next >
Pascal/Delphi Source File  |  1980-01-01  |  3KB  |  84 lines

  1. { ---------------------------------------------------
  2.   PUTSTR  - Write a string directly to display memory
  3.   --------------------------------------------------- }
  4.  
  5. Procedure PutStr ( HV : Char;
  6.                     S : AnyString;
  7.                     X : ColumnType;
  8.                     Y : RowType;
  9.                   Att : Byte );
  10.  
  11. begin
  12.    inline ( $1E/
  13.             $BB/$49/$04/         { mov   bx,449h        video byte offset   }
  14.             $31/$C0/             { xor   ax,ax          ax = 0              }
  15.             $8E/$D8/             { mov   ds,ax          video byte seg      }
  16.             $8A/$07/             { mov   al,[bx]        get byte            }
  17.             $3C/$07/             { cmp   al,7           mono?               }
  18.             $75/$06/             { jne   graphx         no                  }
  19.             $BA/$00/$B0/         { mov   dx,0B000h      regen for mono      }
  20.             $EB/$0C/$90/         { jmp   start          go to parm analysis }
  21.             $BA/$DA/$03/        { mov  dx,3DAh  IBM CGA   }
  22.             $EC/                { in   al,dx    will snow }
  23.             $24/$08/            { and  al,1000b w/o this  }
  24.             $74/$FB/            { jz   vtrace   check     }
  25.                          { graphx:                                          }
  26.             $BA/$00/$B8/         { mov   dx,0B800h      regen for graphics  }
  27.             $8E/$C2/     { start:  mov   es,dx                              }
  28.             $8B/$5E/$08/
  29.             $09/$DB/
  30.             $74/$0C/
  31.             $4B/
  32.             $8B/$46/$06/
  33.             $48/
  34.             $8A/$F0/
  35.             $8A/$D3/
  36.             $EB/$05/$90/
  37.             $B4/$03/
  38.             $CD/$10/
  39.             $8A/$DE/
  40.             $30/$FF/
  41.             $8B/$C3/
  42.             $B1/$07/
  43.             $D3/$E0/
  44.             $B1/$05/
  45.             $D3/$E3/
  46.             $01/$C3/
  47.             $8A/$C2/
  48.             $30/$E4/
  49.             $D1/$E0/
  50.             $01/$C3/
  51.             $8B/$FB/
  52.             $8A/$4E/$0A/
  53.             $30/$ED/
  54.             $8D/$76/$0B/
  55.             $16/
  56.             $1F/
  57.             $8A/$66/$04/
  58.             $8B/$96/$0A/$01/
  59.             $80/$FA/$76/
  60.             $74/$0A/
  61.             $80/$FA/$56/
  62.             $74/$05/
  63.             $31/$D2/
  64.             $EB/$04/$90/
  65.             $BA/$9E/$00/
  66.             $FC/
  67.             $8A/$04/
  68.             $AB/
  69.             $01/$D7/
  70.             $46/
  71.             $E2/$F8/
  72.             $09/$D2/
  73.             $74/$04/
  74.             $81/$EF/$9E/$00/
  75.             $8B/$C7/
  76.             $31/$D2/
  77.             $BB/$A0/$00/
  78.             $F7/$F3/
  79.             $D0/$EA/
  80.             $8A/$F0/
  81.             $B4/$02/
  82.             $CD/$10/
  83.             $1F/$5D);
  84. end;